package com.liu.voluntary.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("admin")
public class Admin {

    @TableId(value = "id",type = IdType.AUTO)
    private String id;

    private String nickname;
    private String mobile;
    private String password;
    private Integer publish;
    private String role;

    @TableField(fill = FieldFill.INSERT)
    private Date registerDate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;


}
